package com.tianyadu.order.service;


import com.tianyadu.order.domain.OrderDetail;
import com.tianyadu.order.dto.OrderDTO;

import java.util.List;

/**
 * @FileName: OrderService
 * @Description:
 * @author: xueyj
 * @create: 2018-07-02 22:08
 */
public interface OrderService {

    /**
      * @Description: 创建订单信息
      * @param:
      * @return:
      * @author:
      * @date:   2018/11/21 7:35
      */
    OrderDTO creatOrder(OrderDTO orderDTO);

    /**
      * @Description: 完结订单(只能卖家操作)
      * @param:
      * @return:
      * @author:
      * @date:   2018/11/23 17:24
      */
    OrderDTO finish(String orderId);

    /**
      * @Description: 根据订单id查询订单详情list
      * @param:
      * @return:
      * @author:
      * @date:   2018/11/23 23:51
      */
    List<OrderDetail> findOrdersByOrderId(String orderId);
}
